

#ifndef _SHELL_REQREGISTER_MESSAGE_H_
#define _SHELL_REQREGISTER_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "NoticeInfo.h"
//#include <vector>
//#include "ServerInfo.h"
using namespace std;

class ReqRegisterMessage : public Message
{
	public:
	ReqRegisterMessage();
	~ReqRegisterMessage();
	void reset();
	ReqRegisterMessage* clone();
	static const int _ID;
	//是否启用白名单模式(0,不启用,1,启用)
	int32 isWhiteListEnable;
	//服务器信息
	ServerInfo* serverInfo;
	//公告列表
	vector<NoticeInfo*> noticeInfo;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
